function changeHtml(){
    var ht = window.parent.document.URL;	
	if(ht.indexOf("?") >= 0 ){
        var urltype = ht.split("?")[1].split("&")[0].substring(5);
        $("#html_agri").attr("src", "AgriMonitor/index.html?type="+ urltype +"&param=");
    }	
}
changeHtml();